home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacGames Sampler
/
PHT MacGames Bundle.iso
/
MacSource Folder
/
Samples from the CD
/
C and C++
/
Think Power 1.0B4
/
Extensions Src
/
Hello World.c
next >
Wrap
C/C++ Source or Header
|
1993-12-07
|
414b
|
25 lines
// HelloWorld.c - Written by Stefan Arentz, August 1993
#include "THINK Power Extensions.h"
pascal void main(TPCallbackBlock *theCallbacks, WindowPtr theWindow) {
char *s = "Hello World!\r";
Handle h;
WindowPtr newWindow;
if (newWindow = theCallbacks->NewDocument()) {
if (h = NewHandle(13)) {
BlockMove(s, *h, 13);
(void) theCallbacks->Paste(h);
DisposeHandle(h);
}
}
}